/* 角色管理模块TS */
/* 1 请求获取全部角色时返回的数据类型 */
export interface records {
  createTime?: string
  id?: number | string
  remark?: null
  roleName: string
  updateTime?: string
}
export type roleListInfo = records[]
export interface resAllRoleData {
  countId?: null
  current?: number | string
  hitCount?: boolean
  maxLimit?: null
  optimizeCountSql: boolean
  orders: []
  pages: number | string
  records: roleListInfo
  searchCount?: boolean
  size: number | string
  total: number | string
}
export interface resAllRole {
  data: {
    code: number
    message: string
    ok: boolean
    data: resAllRoleData
  }
}
/* 2 请求获取全部角色权限时返回的数据类型*/
interface permissionData {
  code?: null
  createTime?: string
  id?: number | string
  level?: number | string
  name: string
  pid?: number | string
  select?: boolean
  status?: null
  toCode?: null
  type?: number | string
  updateTime?: string
}
export type permissionInfo = permissionData[]
export interface resAllPermission {
  data: {
    code: number
    message: string
    ok: boolean
    data: permissionInfo
  }
}
